'use strict';

function collect_min_number(collection) {
  let i=collection.reduce(
    function(a,b){
      if(a<b){
        return a;
      }
      else {
        return b;
      }
    }
  );
  return i;
}

module.exports = collect_min_number;

